package chapter06;

public class Main2 {

	public static void main(String[] args) {
		Manager manager = new Manager();
		UnderlinePen upen = new UnderlinePen('~');
		MessageBox mbox = new MessageBox('*');
		MessageBox sbox = new MessageBox('/');
		manager.register("strong message", upen);
		manager.register("warning box", mbox);
		manager.register("slash box", sbox);
		
		Product p1 = manager.create("strong message");
		Product p2 = manager.create("strong message");
		Product p3 = manager.create("strong message");
		
		System.out.println(p1);
		System.out.println(p2);
		System.out.println(p3);

	}

}
